﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;
using System.Web.UI;
using Kevin.Shop.Business.Products.Components.Content;
using Kevin.Shop.Business.Service.Entity.Helper;
using RiderShop.Mobile.Modle;
using Kevin.Shop.Business.Core.Components;
using Kevin.Shop.Business.Products.Components;
using Kevin.Shop.Business.Service.Entity.Products.Enumerations;
using System.Collections.Specialized;
using RiderShop.Mobile.Common.Component;
using Kevin.Shop.Business.Comments.Components;
using RiderShop.Mobile.Modle.MyAccount;
using RiderShop.Mobile.Modle.Product;
using RiderShop.Mobile.ServiceEntity.Product;
using Kevin.Shop.Business.Core.Components.Responser;
using RiderShop.Mobile.Common.Component.OAuth.Weixing;

namespace RiderShop.Mobile.Controllers
{
    public partial class ProductController : ThemeController
    {
        #region Get Presell Product List
        /// <summary>
        /// 预售商品列表
        /// </summary>
        /// <returns>得到预售商品列表</returns>
        [HttpGet]
        public ActionResult PresellProduct()
        {
            WeixingOAuth.OAuth();

            var model = ProductListModel.GetPresellProducts();

            //不继承母版页
            return View("~/Themes/" + WebClientContext.Current.SiteTheme + "/Views/Product/PresellProduct.cshtml", model);

            //return View(WebClientContext.Current.SiteTheme, "Product", "PresellProduct", WebClientContext.Current.CacheKeyDefaultMasterPage, model);
        }
        #endregion

        #region CategoryProduct
        [HttpGet]
        public ActionResult CategoryProduct()
        {
            var model = new ProductListModel();

            return View(WebClientContext.Current.SiteTheme, "Product", "CategoryProduct", null, model);
        }
        #endregion

    }
}
